﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jumpton.SFA.Server.Entity;
using Jumpton.Persistent;
using Jumpton.Data;
using System.Data;

namespace Jumpton.SFA.Server.BusinessRule.MasterData
{
    public class ContactTimeManager : BusinessLogic
    {
        public CONTACT_TIMES Load(decimal id)
        {
            return (CONTACT_TIMES)ObjectRow.Load(typeof(CONTACT_TIMES), string.Format("this.ID='{0}'", id));
        }
        public decimal Save(CONTACT_TIMES time)
        {
            if (time != null)
            {
                try
                {
                   
                    time.Save();
                }
                catch (Exception err)
                {
                    message = err.Message;throw err;
                }
            }

            return time.ID;
        }
    }
}
